package top.lishuoboy.hutool.core.util;

import cn.hutool.core.util.EnumUtil;

public class EnumUtilTest {

    public static void main(String[] args) {
        System.out.println(EnumUtil.getFieldNames(Source.class));
        System.out.println(EnumUtil.getNames(Source.class));
        System.out.println(EnumUtil.getFieldValues(Source.class, "label"));
        System.out.println(EnumUtil.getNameFieldMap(Source.class, "label"));
        System.out.println(EnumUtil.getEnumMap(Source.class));

        /**
         * [label, name]
         * [staff, customer, cooperation, agent]
         * [内部职工, 担保客户, 合作机构, 代理机构]
         * {staff=内部职工, customer=担保客户, cooperation=合作机构, agent=代理机构}
         * {staff=staff, customer=customer, cooperation=cooperation, agent=agent}
         */
    }
}
